<?php
require_once __Dir__ . '/../simpletest/autorun.php';
require_once __Dir__ . '/../../Core/BonoHomeCore/BonoHomeCoreService.php';

class TestOfAddOperation extends UnitTestCase 
{
	/*
		Check a correct add answer
	*/
    function testCorrectAddOperation() 
	{
		$label = "test add operation";
		$type = 1;
		$status = 0;
		$paymentMean = 1;	
		$category = 1;	
		$expectedamount = 100.01;	
		$operationdate = date("d-m-y"); 
		$isRecurring = true;
		
		//get documents from root
		$service = new BonoHomeCoreService();
		$response = $service->addOperation($label, $type, $status, $paymentMean, $category, $expectedamount, $operationdate, $isRecurring);
		$this->assertTrue($response->response->Id > 0);
    }
	
	
	/*
		Check an invalid add answer
	*/
    function testInvalidAddOperation() 
	{
    }
}
?>